<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Add User</title>
</head>
<body>
<h1>Add User</h1>
<form th:action="@{/users/add}" th:object="${user}" method="post">
    <label for="user_id">user_id:</label>
    <input type="text" id="user_id" name="user_id" th:field="*{userId}" required><br/>
    <label for="username">User Name:</label>
    <input type="text" id="username" name="username" th:field="*{username}" required><br><br>
    <label for="city">城市:</label>
    <input type="text" id="city" name="city" th:field="*{city}" required><br><br>
    <label for="age">Age:</label>
    <input type="number" id="age" name="age" th:field="*{age}" required><br><br>
    <label for="sex">Sex :</label>
    <input type="number" id="sex" name="sex" th:field="*{sex}" required><br><br>
    <label for="phone">Phone:</label>
    <input type="number" id="phone" name="phone" th:field="*{phone}" required><br><br>
    <label for="address">Address:</label>
    <input type="text" id="address" name="address" th:field="*{address}" required><br><br>
    <label for="registerTime">Time:</label>
    <input type="datetime-local" id="registerTime" name="registerTime" th:field="*{registerTime}" required>
    <input type="submit" value="Add User">
</form>
</body>
</html>